package domain;

public class Programmer {
    private int id;
    private String name;//姓名
    private String email;//邮箱
    private boolean status;//状态 true:可用  false：禁用
    private String statusStr;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getStatusStr() {
       if (status){
           return "可用";
       }else {
           return "禁用";
       }

    }

    public void setStatusStr(String statusStr) {
        this.statusStr = statusStr;
    }
}
